After years of illness, he finally surrendered the ghost.
После многих лет болезни он наконец скончался.
Definitionen
To 'surrender the ghost' means to die, cease functioning, or stop working. It is often used metaphorically to describe a person passing away or an object (like a machine) breaking down completely.